﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WoWDeckbuilder
{
    class Card
    {
        // Variable
        private string cardnumber;
        private string name;
        private string faction;
        private CardType type;
        private string cost;
        private string clas;
        private string subtype;
        private string ability;
        private string text;
        private string rarety;
        private string image;
        //Constructor
        public Card(string number)
        {
            CardNumber = number;
        }
        // Attributes
        public string CardNumber{
            get { return cardnumber; }
            set { cardnumber = value; }
        }
        public string Name {
            get { return name; }
            set { name = value; }
        }
        public string Faction {
            get { return faction; }
            set { faction = value; }
        }
        public CardType Type {
            get { return type; }
            set { type = value; }
        }
        public string Cost {
            get { return cost; }
            set { cost = value; }
        }
        public string Class {
            get { return clas; }
            set { clas = value; }
        }
        public string Subtype {
            get { return subtype; }
            set { subtype = value; }
        }
        public string Ability {
            get { return ability; }
            set { ability = value; }
        }
        public string Text {
            get { return text; }
            set { text = value; }
        }
        public string Rarety {
            get { return rarety; }
            set { rarety = value; }
        }
        public string Image {
            get { return image; }
            set { image = value; }
        }
        //
        // Methodes
        //

        /// <summary>
        /// Makes a string based on the cardnumber, name and rarety.
        /// </summary>
        /// <returns>String</returns>
        public string toString()
        {
            string result = CardNumber + ": " + Name + " (" + rarety + ")";
            return result;
        }
    }
}
